package com.rongc.client.freight.business.carrier.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.business.carrier.model.ConveyanceList;


/*
*  找车
* */

public class ConveyanceSearchApi extends AbsRequest<ConveyanceSearchApi.ConveyanceSearchParams, ConveyanceList> {

    public ConveyanceSearchApi(ConveyanceSearchParams feedbackParams, Listener<ConveyanceList> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getSearchDriversUrl(), feedbackParams, listener, errorListener, ConveyanceList.class);
    }

    public static class ConveyanceSearchParams extends BaseParams {

        public ConveyanceSearchParams(String startLon, String startLat, String endLon,
                                      String endLat, String carLength, String carModel,String loadTime, String page) {
            put("startLon",startLon);
            put("startLat",startLat);
            put("endLon",endLon);
            put("endLat",endLat);
            put("carLength",carLength);
            put("carModel",carModel);
            put("loadTime",loadTime);
            put("page",page);
        }
    }


}
